using System;
using System.Collections.Generic;
using System.Text;

namespace EventosLogger
{
    public delegate void Log(string t);

    class Logger
    {
        private event Log l;

      

        public Logger() {
            l = new Log(this.loguea);
        }
        virtual public void loguea(string log) {
            Console.WriteLine(log);
        }
        public void EscribeLog(string log) {
            l(log);
        }
        public void Add(Logger lo) { 
            this.l += lo.loguea;
        }
    }
}
